package site.xuqing.autohelperengine.local.bean;

import android.graphics.Point;
import android.os.Bundle;

/**
 * @author xuqing
 */
public class StepLocalBean {
    /**
     * 主要存储步骤的操作方式
     * 1.为单击，2为长按，3为滑动，4默认滑动上滑，5默认滑动下滑，6默认滑动左滑，7默认滑动右滑
     */
    private StepLocalType stepType;
    /**
     * 记录起始坐标，单击和长按只有起始坐标
     */
    private Point startPosition;
    /**
     * 记录结束坐标，该坐标只有滑动有
     */
    private Point endPosition;
    /**
     * 步骤时长，单位毫秒
     */
    private long taskTime;
    /**
     * 是否是循环步骤的结束
     */
    private boolean loopEnd;
    /**
     * 是否是循环步骤的开始
     */
    private boolean loopStart;
    /**
     * 循环次数
     */
    private int loopTimes;
    /**
     * 额外数据存储
     */
    private Bundle bundle;

    public StepLocalType getStepType() {
        return stepType;
    }

    public void setStepType(StepLocalType stepType) {
        this.stepType = stepType;
    }

    public Point getStartPosition() {
        return startPosition;
    }

    public void setStartPosition(Point startPosition) {
        this.startPosition = startPosition;
    }

    public Point getEndPosition() {
        return endPosition;
    }

    public void setEndPosition(Point endPosition) {
        this.endPosition = endPosition;
    }

    public long getTaskTime() {
        return taskTime;
    }

    public void setTaskTime(long taskTime) {
        this.taskTime = taskTime;
    }

    public boolean isLoopEnd() {
        return loopEnd;
    }

    public void setLoopEnd(boolean loopEnd) {
        this.loopEnd = loopEnd;
    }

    public boolean isLoopStart() {
        return loopStart;
    }

    public void setLoopStart(boolean loopStart) {
        this.loopStart = loopStart;
    }

    public int getLoopTimes() {
        return loopTimes;
    }

    public void setLoopTimes(int loopTimes) {
        this.loopTimes = loopTimes;
    }

    public Bundle getBundle() {
        return bundle;
    }

    public void setBundle(Bundle bundle) {
        this.bundle = bundle;
    }
}
